package cn.momo.mobile.common;

public class AppContext {
	private static AppContext appContext;
	private ImageCache imgCache;
	
	private AppContext(){
	}
	
	public static AppContext getInstance(){
		if(appContext == null){
			appContext = new AppContext();
		}
		return appContext;
	}
	
	public void init(){
		imgCache = new ImageCache();
	}
	
	public ImageCache getImageCache(){
		return imgCache;
	}
	
	public void destroy(){
		imgCache.clear();
	}
	
}
